<template>
	<view class="my-container">
		<my-login v-if = "!userId"></my-login>
		<my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
	import {mapState} from 'vuex'

	export default {
		data() {
			return {
				
			};
		},
		computed: {
			...mapState('user',['userId'])
		},
	}
</script>

<style lang="scss">
page,
.my-container {
  height: 100%;
}
</style>
